package org.shj.pattern.factorymethod

trait Factory {
  def createLogger() : Logger
}

class FileFactory extends Factory{
  def createLogger(): Logger = {
    new FileLogger
  }
}

class HDFSFactory extends Factory{
  def createLogger(): Logger = {
    new HDFSLogger
  }
}